package pub.guoxin.oops.auth.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class RoleUserCreateVo {
    @NotNull
    @Size(min = 11, max = 11)
    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    @NotNull
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotNull
    @ApiModelProperty(value = "名字", required = true)
    private String name;
}
